<?php

	$this->Html->script(array('jquery.maskedinput-1.2.2.min','maskinput','flexigrid.pack','somente-numeros','jquery.maskMoney.0.2','maskinputmoney'), false);
	$this->Html->css('flexigrid', null, array('inline' => false));

	echo "<fieldset><legend>Alterar Eventos: $nome_aluno</legend>";
	
	echo $this->Form->create('AlunoEvento');
	echo $this->Form->input('id');
	
	echo $this->Form->input('aluno_id',array('type' => 'hidden','value'=>$aluno_id));
	echo $this->Form->input('evento_id',array('type' => 'select', 'options' => $eventos, 'empty' => 'Selecione...', 'class' => 'tamanho50', 'label' => __('Evento')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('ano', array('type' => 'text', 'label' => __('Ano'), 'class' => 'tamanho10', 'maxlength' => 4, 'onKeyPress' => 'return SomenteNumero(event)'));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('mes_inicial',array('type' => 'select', 'options' => $meses, 'empty' => 'Selecione...', 'class' => 'tamanho30', 'label' => __('Mês Inicial')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('mes_final',array('type' => 'select', 'options' => $meses, 'empty' => 'Selecione...', 'class' => 'tamanho30', 'label' => __('Mês Final')));
	echo '<div style="clear:both;"></div>';
	echo $this->Form->input('valor', array('type' => 'text', 'label' => __('Valor'), 'class' => 'moeda-real moeda'));
	echo '<div style="clear:both;"></div>';
	echo '<div class="botoes_form">';
	echo $this->Form->button('Salvar', array('type' => 'submit'));
	echo $this->Form->button('Voltar', array('type'=>'button', 'onClick' => "javascript:location='{$this->request->base}/aluno_eventos/grid_eventos/$aluno_id'"));
	echo '</div>'; 
	echo $this->Form->end();
	echo '</fieldset>';